

module.exports = {
  publicPath: '/',
  lintOnSave: false,

  devServer: {
    host: '0.0.0.0',
    port: 80,
    https: false,
    hotOnly: false,
    proxy: { //配置跨域 
      "/api/": {
        target: "http://localhost:8000/",
        ws: true,
        changeOrigin: true, //允许跨域 
        pathRewrite: {
          "^/api": "",
        },
      },
      "/api_new/": {
        target: "http://localhost:8000/",
        ws: true,
        changeOrigin: true, //允许跨域 
        pathRewrite: {
          "^/api_new": "",
        },
      },
    }
  }
}